Optimal. Leaf size=151 \[ -\frac{(x+34) \left (3 x^2+5 x+2\right )^{5/2}}{10 (2 x+3)}-\frac{1}{192} (65-1194 x) \left (3 x^2+5 x+2\right )^{3/2}-\frac{1}{512} (3865-8082 x) \sqrt{3 x^2+5 x+2}+\frac{41053 \tanh ^{-1}\left (\frac{6 x+5}{2 \sqrt{3} \sqrt{3 x^2+5 x+2}}\right )}{1024 \sqrt{3}}-\frac{1325}{128} \sqrt{5} \tanh ^{-1}\left (\frac{8 x+7}{2 \sqrt{5} \sqrt{3 x^2+5 x+2}}\right ) \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.10216, antiderivative size = 151, normalized size of antiderivative = 1., number of steps used = 8, number of rules used = 6, integrand size = 27, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.222, Rules used = {812, 814, 843, 621, 206, 724} \[ -\frac{(x+34) \left (3 x^2+5 x+2\right )^{5/2}}{10 (2 x+3)}-\frac{1}{192} (65-1194 x) \left (3 x^2+5 x+2\right )^{3/2}-\frac{1}{512} (3865-8082 x) \sqrt{3 x^2+5 x+2}+\frac{41053 \tanh ^{-1}\left (\frac{6 x+5}{2 \sqrt{3} \sqrt{3 x^2+5 x+2}}\right )}{1024 \sqrt{3}}-\frac{1325}{128} \sqrt{5} \tanh ^{-1}\left (\frac{8 x+7}{2 \sqrt{5} \sqrt{3 x^2+5 x+2}}\right ) \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 812
Rule 814
Rule 843
Rule 621
Rule 206
Rule 724
Rubi steps
\begin{align*} \int \frac{(5-x) \left (2+5 x+3 x^2\right )^{5/2}}{(3+2 x)^2} \, dx &=-\frac{(34+x) \left (2+5 x+3 x^2\right )^{5/2}}{10 (3+2 x)}-\frac{1}{8} \int \frac{(-332-398 x) \left (2+5 x+3 x^2\right )^{3/2}}{3+2 x} \, dx\\ &=-\frac{1}{192} (65-1194 x) \left (2+5 x+3 x^2\right )^{3/2}-\frac{(34+x) \left (2+5 x+3 x^2\right )^{5/2}}{10 (3+2 x)}+\frac{1}{768} \int \frac{(40938+48492 x) \sqrt{2+5 x+3 x^2}}{3+2 x} \, dx\\ &=-\frac{1}{512} (3865-8082 x) \sqrt{2+5 x+3 x^2}-\frac{1}{192} (65-1194 x) \left (2+5 x+3 x^2\right )^{3/2}-\frac{(34+x) \left (2+5 x+3 x^2\right )^{5/2}}{10 (3+2 x)}-\frac{\int \frac{-2525724-2955816 x}{(3+2 x) \sqrt{2+5 x+3 x^2}} \, dx}{36864}\\ &=-\frac{1}{512} (3865-8082 x) \sqrt{2+5 x+3 x^2}-\frac{1}{192} (65-1194 x) \left (2+5 x+3 x^2\right )^{3/2}-\frac{(34+x) \left (2+5 x+3 x^2\right )^{5/2}}{10 (3+2 x)}+\frac{41053 \int \frac{1}{\sqrt{2+5 x+3 x^2}} \, dx}{1024}-\frac{6625}{128} \int \frac{1}{(3+2 x) \sqrt{2+5 x+3 x^2}} \, dx\\ &=-\frac{1}{512} (3865-8082 x) \sqrt{2+5 x+3 x^2}-\frac{1}{192} (65-1194 x) \left (2+5 x+3 x^2\right )^{3/2}-\frac{(34+x) \left (2+5 x+3 x^2\right )^{5/2}}{10 (3+2 x)}+\frac{41053}{512} \operatorname{Subst}\left (\int \frac{1}{12-x^2} \, dx,x,\frac{5+6 x}{\sqrt{2+5 x+3 x^2}}\right )+\frac{6625}{64} \operatorname{Subst}\left (\int \frac{1}{20-x^2} \, dx,x,\frac{-7-8 x}{\sqrt{2+5 x+3 x^2}}\right )\\ &=-\frac{1}{512} (3865-8082 x) \sqrt{2+5 x+3 x^2}-\frac{1}{192} (65-1194 x) \left (2+5 x+3 x^2\right )^{3/2}-\frac{(34+x) \left (2+5 x+3 x^2\right )^{5/2}}{10 (3+2 x)}+\frac{41053 \tanh ^{-1}\left (\frac{5+6 x}{2 \sqrt{3} \sqrt{2+5 x+3 x^2}}\right )}{1024 \sqrt{3}}-\frac{1325}{128} \sqrt{5} \tanh ^{-1}\left (\frac{7+8 x}{2 \sqrt{5} \sqrt{2+5 x+3 x^2}}\right )\\ \end{align*}
Mathematica [A] time = 0.0976969, size = 120, normalized size = 0.79 \[ \frac{-\frac{2 \sqrt{3 x^2+5 x+2} \left (6912 x^5-28512 x^4-80064 x^3-118996 x^2+40412 x+293973\right )}{2 x+3}+159000 \sqrt{5} \tanh ^{-1}\left (\frac{-8 x-7}{2 \sqrt{5} \sqrt{3 x^2+5 x+2}}\right )+205265 \sqrt{3} \tanh ^{-1}\left (\frac{6 x+5}{2 \sqrt{9 x^2+15 x+6}}\right )}{15360} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.01, size = 195, normalized size = 1.3 \begin{align*} -{\frac{53}{20} \left ( 3\, \left ( x+3/2 \right ) ^{2}-4\,x-{\frac{19}{4}} \right ) ^{{\frac{5}{2}}}}+{\frac{995+1194\,x}{192} \left ( 3\, \left ( x+3/2 \right ) ^{2}-4\,x-{\frac{19}{4}} \right ) ^{{\frac{3}{2}}}}+{\frac{6735+8082\,x}{512}\sqrt{3\, \left ( x+3/2 \right ) ^{2}-4\,x-{\frac{19}{4}}}}+{\frac{41053\,\sqrt{3}}{3072}\ln \left ({\frac{\sqrt{3}}{3} \left ({\frac{5}{2}}+3\,x \right ) }+\sqrt{3\, \left ( x+3/2 \right ) ^{2}-4\,x-{\frac{19}{4}}} \right ) }-{\frac{265}{48} \left ( 3\, \left ( x+3/2 \right ) ^{2}-4\,x-{\frac{19}{4}} \right ) ^{{\frac{3}{2}}}}-{\frac{1325}{128}\sqrt{12\, \left ( x+3/2 \right ) ^{2}-16\,x-19}}+{\frac{1325\,\sqrt{5}}{128}{\it Artanh} \left ({\frac{2\,\sqrt{5}}{5} \left ( -{\frac{7}{2}}-4\,x \right ){\frac{1}{\sqrt{12\, \left ( x+3/2 \right ) ^{2}-16\,x-19}}}} \right ) }-{\frac{13}{10} \left ( 3\, \left ( x+3/2 \right ) ^{2}-4\,x-{\frac{19}{4}} \right ) ^{{\frac{7}{2}}} \left ( x+{\frac{3}{2}} \right ) ^{-1}}+{\frac{65+78\,x}{20} \left ( 3\, \left ( x+3/2 \right ) ^{2}-4\,x-{\frac{19}{4}} \right ) ^{{\frac{5}{2}}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 1.53539, size = 220, normalized size = 1.46 \begin{align*} -\frac{1}{20} \,{\left (3 \, x^{2} + 5 \, x + 2\right )}^{\frac{5}{2}} + \frac{199}{32} \,{\left (3 \, x^{2} + 5 \, x + 2\right )}^{\frac{3}{2}} x - \frac{65}{192} \,{\left (3 \, x^{2} + 5 \, x + 2\right )}^{\frac{3}{2}} - \frac{13 \,{\left (3 \, x^{2} + 5 \, x + 2\right )}^{\frac{5}{2}}}{4 \,{\left (2 \, x + 3\right )}} + \frac{4041}{256} \, \sqrt{3 \, x^{2} + 5 \, x + 2} x + \frac{41053}{3072} \, \sqrt{3} \log \left (\sqrt{3} \sqrt{3 \, x^{2} + 5 \, x + 2} + 3 \, x + \frac{5}{2}\right ) + \frac{1325}{128} \, \sqrt{5} \log \left (\frac{\sqrt{5} \sqrt{3 \, x^{2} + 5 \, x + 2}}{{\left | 2 \, x + 3 \right |}} + \frac{5}{2 \,{\left | 2 \, x + 3 \right |}} - 2\right ) - \frac{3865}{512} \, \sqrt{3 \, x^{2} + 5 \, x + 2} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.46098, size = 441, normalized size = 2.92 \begin{align*} \frac{205265 \, \sqrt{3}{\left (2 \, x + 3\right )} \log \left (4 \, \sqrt{3} \sqrt{3 \, x^{2} + 5 \, x + 2}{\left (6 \, x + 5\right )} + 72 \, x^{2} + 120 \, x + 49\right ) + 159000 \, \sqrt{5}{\left (2 \, x + 3\right )} \log \left (-\frac{4 \, \sqrt{5} \sqrt{3 \, x^{2} + 5 \, x + 2}{\left (8 \, x + 7\right )} - 124 \, x^{2} - 212 \, x - 89}{4 \, x^{2} + 12 \, x + 9}\right ) - 4 \,{\left (6912 \, x^{5} - 28512 \, x^{4} - 80064 \, x^{3} - 118996 \, x^{2} + 40412 \, x + 293973\right )} \sqrt{3 \, x^{2} + 5 \, x + 2}}{30720 \,{\left (2 \, x + 3\right )}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} - \int - \frac{20 \sqrt{3 x^{2} + 5 x + 2}}{4 x^{2} + 12 x + 9}\, dx - \int - \frac{96 x \sqrt{3 x^{2} + 5 x + 2}}{4 x^{2} + 12 x + 9}\, dx - \int - \frac{165 x^{2} \sqrt{3 x^{2} + 5 x + 2}}{4 x^{2} + 12 x + 9}\, dx - \int - \frac{113 x^{3} \sqrt{3 x^{2} + 5 x + 2}}{4 x^{2} + 12 x + 9}\, dx - \int - \frac{15 x^{4} \sqrt{3 x^{2} + 5 x + 2}}{4 x^{2} + 12 x + 9}\, dx - \int \frac{9 x^{5} \sqrt{3 x^{2} + 5 x + 2}}{4 x^{2} + 12 x + 9}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] time = 1.99492, size = 906, normalized size = 6. \begin{align*} \text{result too large to display} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]